﻿using System;
using SharpSqlAnalyzer.nodes;
using SharpSqlAnalyzer.nodes.mssql;

namespace SharpSqlAnalyzer.stmt.mssql
{
	// Token: 0x02000173 RID: 371
	public class TMssqlEndConversation : TCustomSqlStatement
	{
		// Token: 0x06000CDA RID: 3290 RVA: 0x00307E26 File Offset: 0x00306026
		public TMssqlEndConversation(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstmssqlendconversation;
		}

		// Token: 0x06000CDB RID: 3291 RVA: 0x00307E3A File Offset: 0x0030603A
		internal override void buildsql()
		{
		}

		// Token: 0x06000CDC RID: 3292 RVA: 0x00307E3C File Offset: 0x0030603C
		internal override void clear()
		{
		}

		// Token: 0x06000CDD RID: 3293 RVA: 0x00307E3E File Offset: 0x0030603E
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06000CDE RID: 3294 RVA: 0x00307E45 File Offset: 0x00306045
		internal virtual void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x1700025D RID: 605
		// (get) Token: 0x06000CDF RID: 3295 RVA: 0x00307E47 File Offset: 0x00306047
		// (set) Token: 0x06000CE0 RID: 3296 RVA: 0x00307E4F File Offset: 0x0030604F
		public virtual TObjectName ConversationHandle
		{
			get
			{
				return this.conversationHandle;
			}
			set
			{
				this.conversationHandle = value;
			}
		}

		// Token: 0x06000CE1 RID: 3297 RVA: 0x00307E58 File Offset: 0x00306058
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			TMssqlEndConversationSqlNode tmssqlEndConversationSqlNode = (TMssqlEndConversationSqlNode)this.rootNode;
			base.doParseStatement(psql);
			this.conversationHandle = tmssqlEndConversationSqlNode.ConversationHandle;
			return 0;
		}

		// Token: 0x06000CE2 RID: 3298 RVA: 0x00307E90 File Offset: 0x00306090
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000CE3 RID: 3299 RVA: 0x00307EA0 File Offset: 0x003060A0
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040012F5 RID: 4853
		private TObjectName conversationHandle;
	}
}
